package com.cskaoyan.mapper.wx;

import com.cskaoyan.bean.CategoryId;
import com.cskaoyan.bean.Goods;
import com.cskaoyan.bean.wxbean.WxHomeBean.GoodsListBean;

import java.util.List;

/**
 * Created by Enzo Cotter on 2020/10/8.
 */
public interface CategoryMapper {

    Integer queryPidById(Integer currentSubCategoryId);

    List<CategoryId> queryAllCategoriesL2(Integer parentCategoryId);

    CategoryId selectByPrimaryKey(Integer currentSubCategoryId);

    List<GoodsListBean> queryGoodsListById(Integer categoryId);

    Goods selectGoodsById(Integer id);

    List<GoodsListBean> queryListByIdWithLimit(Integer categoryId, int i);

    List<CategoryId> queryCategoryListByKeyWord(String order, String sort, String keyword);

    List<GoodsListBean> selectGoodsListByKeyWord(String order, String sort, String keyword);
}
